﻿@model IEnumerable<DBTramite.BussinesEntities.T_Emisor>

@{
    ViewBag.Title = "Busqueda Persona Juridica";
}

<h2>Busqueda Persona Juridica</h2>

<p>
    @Html.ActionLink("Busqueda Persona Natural", "BusquedaNatural")
</p>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Buscar Persona Juridica</legend>
        <b>Nombre:</b>
        @Html.TextBox("Criterio")
        <input type="submit" name="btnBuscar"  value ="Buscar" class="k-buton"/>
    </fieldset> 
}


<table>
    <tr>
        @*<th>
            @Html.DisplayNameFor(model => model.codemisor)
        </th>*@
        <th>
           Tipo de Persona
           @* @Html.DisplayNameFor(model => model.tipopersona)*@
        </th>
        <th>
            Nombre
            @*@Html.DisplayNameFor(model => model.nombre)*@
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.apepaterno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.apematerno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.dni)
        </th>*@
        <th>
            RUC
           @* @Html.DisplayNameFor(model => model.ruc)*@
        </th>
        

        <th>
            Dirección
            @*@Html.DisplayNameFor(model => model.direccion)*@
        </th>
        <th>
            Telefono
            @*@Html.DisplayNameFor(model => model.telefono)*@
        </th>
        <th>
            Correo Electronico
            @*@Html.DisplayNameFor(model => model.email)*@
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.id_dep)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.id_old)
        </th>*@
        @*<th>
            @Html.DisplayNameFor(model => model.codusuario)
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        @*<td>
            @Html.DisplayFor(modelItem => item.codemisor)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.tipopersona)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nombre)
        </td>
        @*<td>
            @Html.DisplayFor(modelItem => item.apepaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.apematerno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dni)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.ruc)
        </td>
        

        <td>
            @Html.DisplayFor(modelItem => item.direccion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.telefono)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.email)
        </td>

        @*<td>
            @Html.DisplayFor(modelItem => item.id_dep)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.id_old)
        </td>*@
        @*<td>
            @Html.DisplayFor(modelItem => item.codusuario)
        </td>*@
        <td>
            @Html.ActionLink("Editar", "EditJuridica", new { id=item.codemisor}) 
           <!--  @Html.ActionLink("Delete", "Delete", new { id=item.codemisor }) -->
        </td>
    </tr>
}

</table>
     
